Package-level declarations
Contains all classes/methods for the Mood Analytics feature
Types
Represents the UI state for BiWeekly mood analytics. This includes past BiWeekly evaluations and corresponding graph data.
ViewModel responsible for managing BiWeekly mood analytics. It fetches BiWeekly mood data, processes it, and provides it to the UI.
Represents the UI state for daily mood analytics. This includes historical evaluations and the currently selected date.
ViewModel responsible for managing daily mood analytics. It handles data retrieval, state management, and user interactions.
Represents the UI state for the mood calendar, used for displaying mood-related data.
Functions
Displays the main Analytics screen, which includes navigation and a top bar.
Displays the content of the Analytics screen, including a tabbed interface for Quick and BiWeekly tabs.
Displays a horizontal calendar with daily evaluations. Each date can be selected, and associated mood colors are displayed based on the evaluations. Allows navigation through months and displays mood-based color indicators.
A composable function that displays the Bi-Weekly Analytics screen. It uses TabbedContent
to present different sections such as the mood graph and evaluation history. The content is dynamically updated based on the data from the ViewModel.
A composable function that displays a list of bi-weekly evaluations, categorized by the current week, last week, and previous weeks. It also computes the severity for depression and anxiety scores and displays them accordingly.
Displays a card with daily evaluation details such as the strongest emotion and stress level.
Displays the content for the daily analytics screen. This includes a calendar of daily evaluations and historical analytics.
Displays a calendar for daily evaluations and allows the user to select a date.
Displays a historical analytics view of the user's daily evaluations. The evaluations are grouped by today, yesterday, and previous days.
A composable function that renders a line graph for either depression or anxiety scores over time.
Helper function to generate mock bi-weekly evaluation entries with sequential scores.
A composable function that displays the mood graph screen for bi-weekly evaluations. It generates line charts showing depression and anxiety scores over time, grouped by evaluation entries.
Maps the stress level description to a general stress level.
Displays a card with the details of a bi-weekly evaluation entry, including depression and anxiety scores.
Displays a popup showing detailed information about a bi-weekly evaluation entry, including depression and anxiety scores.
A composable that displays tabbed content where the active tab's content is displayed below the tab options.
Displays a title for a given week category in the analytics view.